package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.CustEventMapper;
import com.ruoyi.house_sale.domain.CustEvent;
import com.ruoyi.house_sale.service.ICustEventService;

/**
 * 客户事件Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-09
 */
@Service
public class CustEventServiceImpl implements ICustEventService 
{
    @Autowired
    private CustEventMapper custEventMapper;

    /**
     * 查询客户事件
     * 
     * @param eventid 客户事件主键
     * @return 客户事件
     */
    @Override
    public CustEvent selectCustEventByEventid(Long eventid)
    {
        return custEventMapper.selectCustEventByEventid(eventid);
    }

    /**
     * 查询客户事件列表
     * 
     * @param custEvent 客户事件
     * @return 客户事件
     */
    @Override
    public List<CustEvent> selectCustEventList(CustEvent custEvent)
    {
        return custEventMapper.selectCustEventList(custEvent);
    }

    /**
     * 新增客户事件
     * 
     * @param custEvent 客户事件
     * @return 结果
     */
    @Override
    public int insertCustEvent(CustEvent custEvent)
    {
        return custEventMapper.insertCustEvent(custEvent);
    }

    /**
     * 修改客户事件
     * 
     * @param custEvent 客户事件
     * @return 结果
     */
    @Override
    public int updateCustEvent(CustEvent custEvent)
    {
        return custEventMapper.updateCustEvent(custEvent);
    }

    /**
     * 批量删除客户事件
     * 
     * @param eventids 需要删除的客户事件主键
     * @return 结果
     */
    @Override
    public int deleteCustEventByEventids(Long[] eventids)
    {
        return custEventMapper.deleteCustEventByEventids(eventids);
    }

    /**
     * 删除客户事件信息
     * 
     * @param eventid 客户事件主键
     * @return 结果
     */
    @Override
    public int deleteCustEventByEventid(Long eventid)
    {
        return custEventMapper.deleteCustEventByEventid(eventid);
    }

    @Override
    public List<CustEvent> selectEventList(Long custId) {
        return custEventMapper.selectEventList(custId);
    }
}
